﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BooruViewer.Models
{
    /// <summary>
    /// Ratings enum
    /// </summary>
    public enum Rating
    {
        Safe,
        Questionable,
        Explicit
    }

    public class Query
    {
        public string Tags { get; set; }
        public Rating[] Ratings { get; set; }
        public int? MinScore { get; set; }
        public int? MaxScore { get; set; }
        public int Page { get; set; }
        public string Token { get; set; }

        /// <summary>
        /// Query object constructor
        /// </summary>
        /// <param name="tags"></param>
        /// <param name="ratings"></param>
        /// <param name="page"></param>
        /// <param name="minScore"></param>
        /// <param name="maxScore"></param>
        /// <param name="token"></param>
        public Query(string tags, Rating[] ratings, int page = 1, int? minScore = null, int? maxScore = null, string token = "")
        {
            Tags = tags;
            Ratings = ratings;
            MinScore = minScore;
            MaxScore = maxScore;
            Page = page;
            Token = token;
        }
    }
}
